<template>
  <div>
    <button @click="sendMessage">我是Children组件的兄弟</button>
  </div>
</template>

<script>
import bus from '@/js/eventBus'
export default {
  data() {
    return {
      bToC: "你好呀"
    }
  },
  methods: {
    sendMessage() {
      bus.$emit("SendMessage", this.bToC)
    }
  }

}
</script>